import { createStore, applyMiddleware, compose } from 'redux';

import thunk from 'redux-thunk';
import logger from 'redux-logger';
import mainReducer from './reducers/main.js';

const store = createStore(mainReducer, compose(
  applyMiddleware(logger, thunk),
  window.devToolsExtension?window.devToolsExtension():f => f
))

export default store;